import React from 'react';
import PropTypes from 'prop-types';
import DefaultButton from '@welab/fx-ui/components/Button';
// import fn from '@welab/fx-ui/components/PlateformHalf';
import { buttons } from '../theme';

const Button = props => (<DefaultButton {...props} />);
Button.defaultProps = {
  themeStyle: '',
  theme: buttons.primary,
};
Button.propTypes = {
  /**
   * ### Button 属性说明
   *
   * 按钮
   *
   * | Name | Type | Default | Details | isRequired |
   * | ------:| -----------:| -----------: | -----------: | ------:|
   * | theme | object | | 主题 | no |
   * | label | string | | 按钮文字 | yes |
   * | themeStyle | string | | btn-sec(中等大小按钮) 或者 btn-lit(小按钮) | no |
   *
   * ### Button 代码示例(详见示例项目)
   *
   * ```html
   * <Button theme={Button} label="传入字符"/>
   * ```
   */
  label: PropTypes.string.isRequired,
  themeStyle: PropTypes.string,
  theme: PropTypes.instanceOf(Object),
};

export default Button;
